Carbon


GetMenuFont

Header: Menus.h Carbon status: Supported

Obtains the font used in a menu.

OSStatus GetMenuFont (
    MenuHandle menu, 
    SInt16 *outFontID, 
    UInt16 *outFontSize
);
menu

A handle to the menu whose font is to be obtained.

outFontID

On input, a pointer to a signed 16-bit integer. On return, this value identifies the font family ID for the menu font.

outFontSize

On input, a pointer to an unsigned 16-bit integer. On return, this value identifies the size of the font, in points.

function result

A result code.

DISCUSSION

Your application may use the GetMenuFont function to retrieve the font for an individual menu, such as a pop-up menu.

VERSION NOTES

This function is available with Mac OS 8.5 and later.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when MenusLib 8.5 or later is installed. Exported by CarbonLib 1.0 and later and by MenusLib 8.5 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)